//
//  ShopCollectionTableViewCell.m
//  PeopleStreet
//
//  Created by 辰领科技 on 16/2/1.
//  Copyright © 2016年 yuf. All rights reserved.
//

#import "ShopCollectionTableViewCell.h"

@implementation ShopCollectionTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UIView * vLine = [[UIView alloc]initWithFrame:flexibleFrame(CGRectMake(0, 100, 320, 5), NO)];
        vLine.backgroundColor = [UIColor colorWithWhite:0.953 alpha:1.000];
        [self.contentView addSubview:vLine];
        
        //图片
        _shopImage = [[UIImageView alloc]initWithFrame:flexibleFrame(CGRectMake(8 , 15, 100, 65), NO)];
        [self.contentView addSubview:_shopImage];
        
        _shopName = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(120, 15, 190, 15), NO)];
        _shopName.textAlignment = NSTextAlignmentLeft;
        _shopName.textColor = [UIColor colorWithWhite:0.267 alpha:1.000];
        _shopName.font = [UIFont systemFontOfSize:15*VerticalTexeRatio()];
        [self.contentView addSubview:_shopName];
        
        NSArray * array = @[@"服务评分",@"商品评分"];
        for (int i = 0; i<2; i++) {
            UILabel * label  = [[UILabel alloc]initWithFrame:flexibleFrame(CGRectMake(120, 58+i*16, 190, 10), NO)];
            label.text = array[i];
            label.textAlignment = NSTextAlignmentLeft;
            label.textColor = [UIColor colorWithWhite:0.267 alpha:1.000];
            label.font = [UIFont systemFontOfSize:10*VerticalTexeRatio()];
            [self.contentView addSubview:label];
        
        }
      
        
    }
    
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
